#ifndef __SCNS_CPU_USAGE_H__
#define __SCNS_CPU_USAGE_H__

#include "ScnsConfig.h"

#if defined(SCNS_CPU_USAGE_ENABLE)&&SCNS_CPU_USAGE_ENABLE==1

#include "ScnsBspCpuUsage.h"

#include "ScnsYing.h"

typedef enum
{
    SCNS_CPU_USAGE_STATUS_OK=SCNS_YING_STATUS_OK,
    SCNS_CPU_USAGE_STATUS_BSP_FAILED=SCNS_YING_STATUS_BSP_FAILED,
    SCNS_CPU_USAGE_STATUS_FAILED=SCNS_YING_STATUS_FAILED,
}ScnsCpuUsageStatus;

extern ScnsCpuUsageStatus scnsCpuUsageInit(void);
extern void scnsCpuUsageCount(void);
extern void scnsCpuUsageMarkEnter(ScnsCpuUsageSlot slot);
extern void scnsCpuUsageMarkOut(void);
extern void scnsCpuUsagePrint(void);
extern void scnsCpuUsageInterrupt(void);

#endif

#endif
